﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace MyVocationSpace.AJAX
{
    public partial class AddExperience : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;
            if (Request.QueryString["Designation"] != null && Request.QueryString["Company"] != null &&
                Request.QueryString["Location"] != null && Request.QueryString["ExpFrom"] != null &&
                Request.QueryString["ExpTo"] != null)
            {
                string Designation = Request.QueryString["Designation"];
                string Company = Request.QueryString["Company"];
                string Location = Request.QueryString["Location"];
                string ExpFrom = Request.QueryString["ExpFrom"];
                string ExpTo = Request.QueryString["ExpTo"];

                BAL.Users.InsertUserExperience(Convert.ToInt32(Session["UserID"]), Designation, Company, Location, ExpFrom, ExpTo);
            }
        }
    }
}